<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(document).ready(function(){
		$("#loginForm").submit(function(){
			if($(":text[name=sellerName]").val()==""){
				alert("판매자명을 입력하세요!");
				return false;
			}else if($(":text[name=sellerAddress]").val()==""){
				alert("판매지를 입력하세요!");
				return false;
			}else if($(":text[name=sellerInfo]").val()==""){
				alert("판매자 정보를 입력하세요!");
				return false;
			}else if($("textarea[name=mess]").val()==""){
				alert("메세지를 입력하세요!");
				return false;
			} 
		})
	})
</script>
<body>
<form method="post" id="loginForm" action="${initParam.root }/askSeller.do">
<h3>신청 판매자 정보를 입력하세요</h3>
<table>
<tr>
	<td>판매명</td><td><input type="text" name="sellerName"></td>
</tr>
<tr>
	<td>판매지</td><td><input type="text" name="sellerAddress"></td>
</tr>
<tr>
	<td>판매 정보</td><td><input type="text" name="sellerInfo"></td>
</tr>
<tr>
	<td>판매신청메세지</td><td><textarea name="mess" rows="5"></textarea></td>
</tr>
</table>
<input type="submit" value="판매자신청하기" class="submit">
</form>
</body>
</html>






